﻿// 1.1.4.03. A company has name, address, phone number, fax number, web site and manager. The manager has
// first name, last name, age and a phone number. Write a program that reads the information about a company and
// its manager and prints them on the console.

using System;

class CompanyAndManagerInfo
{
    static void Main()
    {
        Console.Write("Please enter the company name: ");
        string companyName = Console.ReadLine();
        Console.Write("Please enter the company adress: ");
        string companyAdress = Console.ReadLine();
        Console.Write("Please enter the company phone number: ");
        int companyPhone = int.Parse(Console.ReadLine());
        Console.Write("Please enter the company fax number: ");
        int companyFax = int.Parse(Console.ReadLine());
        Console.Write("Please enter the company website: ");
        string companyWebsite = Console.ReadLine();
        Console.Write("Please enter the first name of any manager in the company: ");
        string managerFirstName = Console.ReadLine();
        Console.Write("Please enter the last name of the same manager: ");
        string managerLastName = Console.ReadLine();
        Console.Write("And for last please enter his phone number: ");
        int managerPhone = int.Parse(Console.ReadLine());
        Console.WriteLine("The company {0} has adress: {1}, phone: {2}, fax: {3} and website: {4}.", companyName, companyAdress, companyPhone, companyFax, companyWebsite);
        Console.WriteLine("One of his managers has names: {0} {1} and phone number: {2}.", managerFirstName, managerLastName, managerPhone);
    }
}
